package org.x.user.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 角色权限分配DTO
 *
 * @author 夏包包
 * @date 2025-03-08 13:39:03
 */
@Data
public class RolePermDTO {

    /**
     * 角色权限分配ID
     */
    @NotBlank(groups = { UpdateGroup.class, DeleteGroup.class }, message = "角色权限分配ID不能为空")
    @Schema(description = "角色权限分配ID")
    private String rolePermId;

    /**
     * 角色ID
     */
    @NotBlank(groups = { CreateGroup.class, UpdateGroup.class }, message = "角色ID不能为空")
    @Schema(description = "角色ID")
    private String roleId;

    /**
     * 权限ID
     */
    @NotBlank(groups = { CreateGroup.class, UpdateGroup.class }, message = "权限ID不能为空")
    @Schema(description = "权限ID")
    private String permId;

    /**
     * 数据权限范围
     */
    @Schema(description = "数据权限范围")
    private String dataScope;
}
